<link rel="stylesheet" href="__STATIC__/plugs/lay-module/treetable-lay/treetable.css?v={:time()}" media="all">
<style>
    .layui-btn:not(.layui-btn-lg ):not(.layui-btn-sm):not(.layui-btn-xs) {
        height: 34px;
        line-height: 34px;
        padding: 0 8px;
    }
    /*.layui-table-cell{*/
    /*display:table-cell;*/
    /*vertical-align: middle;*/
    /*}*/
    able{table-layout: fixed;}
    td{word-break: break-all; word-wrap:break-word;}
    .layui-fluid {
        height:auto;
    }
    .layui-table-cell  {
        height:auto;
        overflow:visible;
        text-overflow:inherit;
        white-space:pre-line;
    }
</style>
<script>
    var parameter = '{$parameter|raw|default=""}';
</script>
<div class="layuimini-container">
    <div class="layuimini-main">
        <table id="currentTable" class="layui-table layui-hide"
               data-auth-add="{:auth('nursinguser.escorttype/add')}"
               data-auth-edit="{:auth('nursinguser.escorttype/edit')}"
               data-auth-delete="{:auth('nursinguser.escorttype/delete')}"
               data-auth-add="{:auth('nursinguser.escorttype/add?field=pid')}"
               data-auth-nursing="{:auth('nursinguser.nursinglang/index?field=type_id')}"
               data-auth-xuanxiang="{:auth('nursinguser.nursinglang/xuanxiang')}"

               lay-filter="currentTable">
        </table>
    </div>
</div>
<script type="text/html" id="toolbar">
    <button class="layui-btn layui-btn-sm layuimini-btn-primary" data-treetable-refresh><i class="fa fa-refresh"></i> </button>
    <button class="layui-btn layui-btn-normal layui-btn-sm {if !auth('nursinguser.escorttype/add')}layui-hide{/if}" data-open="nursinguser.escorttype/add" data-title="添加"><i class="fa fa-plus"></i> 添加</button>
    <button class="layui-btn layui-btn-sm layui-btn-danger {if !auth('nursinguser.escorttype/del')}layui-hide{/if}" data-url="nursinguser.escorttype/delete" data-treetable-delete="currentTableRenderId"><i class="fa fa-trash-o"></i> 删除</button>
</script>
<script type="text/html" id="right_button">
    <button class="layui-btn layui-btn-normal layui-btn-xs {if !auth('nursinguser.escorttype/edit')}layui-hide{/if}" data-open="nursinguser.escorttype/edit?id={{d.id}}" data-title="编辑">编辑</button>
<button class="layui-btn layui-btn-danger layui-btn-xs {if !auth('nursinguser.escorttype/delete')}layui-hide{/if}" data-request="nursinguser.escorttype/delete?id={{d.id}}" data-title="删除">删除</button>

    {{# if(d.status==1){}}<button class="layui-btn layui-btn-normal layui-btn-xs {if !auth('nursinguser.escorttype/add?field=pid')}layui-hide{/if}" data-open="nursinguser.escorttype/add?field=pid&id={{d.id}}" data-title="添加下级">添加下级</button>{{# } }}
{{# if(d.status==1&&d.types==1){}}<button class="layui-btn layui-btn-normal layui-btn-xs {if !auth('nursinguser.nursinglang/index?field=type_id')}layui-hide{/if}" data-open="nursinguser.nursinglang/index?field=type_id&id={{d.id}}" data-full="true" data-title="短期护理设置">短期护理设置</button>{{# } }}
{{# if(d.status==1&&d.types==1){}}<button class="layui-btn layui-btn-normal layui-btn-xs {if !auth('nursinguser.nursinglang/xuanxiang')}layui-hide{/if}" data-open="nursinguser.nursinglang/xuanxiang?id={{d.id}}" data-title="短期匹配选项设置">短期匹配选项设置</button>{{# } }}
{{# if(d.status==1&&d.types==1){}}<button class="layui-btn layui-btn-normal layui-btn-xs {if !auth('nursinguser.nursinglang/shezi')}layui-hide{/if}" data-open="nursinguser.nursinglang/shezi?id={{d.id}}" data-full="true" data-title="短期匹配病症设置">短期匹配病症设置</button>{{# } }}
{{# if(d.status==1&&d.types==2){}}<button class="layui-btn layui-btn-normal layui-btn-xs {if !auth('nursinguser.nursinglang/index?field=type_id')}layui-hide{/if}" data-open="nursinguser.nursinglang/index?field=type_id&id={{d.id}}" data-full="true" data-title="长期护理设置">长期护理设置</button>{{# } }}
{{# if(d.status==1&&d.types==3){}}<button class="layui-btn layui-btn-normal layui-btn-xs {if !auth('nursinguser.nursinglang/index?field=type_id')}layui-hide{/if}" data-open="nursinguser.nursinglang/index?field=type_id&id={{d.id}}" data-full="true" data-title="钟点工设置">钟点工设置</button>{{# } }}
{{# if(d.status==1&&d.types==4){}}<button class="layui-btn layui-btn-normal layui-btn-xs {if !auth('nursinguser.nursinglang/index?field=type_id')}layui-hide{/if}" data-open="nursinguser.nursinglang/index?field=type_id&id={{d.id}}" data-full="true" data-title="保姆设置">保姆设置</button>{{# } }}
{{# if(d.status==1&&d.types==2){}}<button class="layui-btn layui-btn-normal layui-btn-xs {if !auth('matching.langsmatching/index')}layui-hide{/if}" data-open="matching.langsmatching/index?id={{d.id}}" data-full="true" data-title="长期匹配选项设置">长期匹配选项设置</button>{{# } }}
{{# if(d.status==1&&d.types==2){}}<button class="layui-btn layui-btn-normal layui-btn-xs {if !auth('nursinguser.langs/index')}layui-hide{/if}" data-open="nursinguser.langs/index?id={{d.id}}" data-full="true" data-title="长期匹配病症设置">长期匹配病症设置</button>{{# } }}

</script>